package off_transaction

import (
	// "bp/cache"
	sqlc "bp/db/sqlc"
	// "bp/internal/util"
	"context"
)

// GetTransactionPtr 获取优惠交易
func (s *OffTransactionEntityServiceImp) GetTransactionPtr(ctx context.Context, q *sqlc.Queries, transactionID int64) (offTransactionPtr *sqlc.OffTransaction, err error) {
	// slog := util.NewContextLogger(ctx, s.slog)
	offTransaction, err := q.GetOffTransaction(ctx, transactionID)
	if err != nil {
		return
	}
	offTransactionPtr = &offTransaction
	return
}
